{
  "layer": "top",
    "modules-left": ["wlr/workspaces"],
    "modules-center": ["custom/mpris"],
    "modules-right": ["custom/sound", "clock#time", "clock#date"],
    "custom/arch": {
      "format": "  ",
      "on-click": "rofi -show"
    },
  "wlr/workspaces": {
	      // "disable-scroll": true,
    "sort-by-number": true,
    "all-outputs": true,
    "on-click": "activate",
    "on-scroll-up": "hyprctl dispatch workspace e+1",
    "on-scroll-down": "hyprctl dispatch workspace e-1",
    "format": "{icon}",
    "format-icons": {
      "1": "<span color=\"#EBDBB2\"></span>",
      "2": "<span color=\"#EBDBB2\"></span>",
      "3": "<span color=\"#EBDBB2\"></span>",
      "4": "<span color=\"#EBDBB2\"></span>",
      "5": "<span color=\"#EBDBB2\"></span>",
      "6": "<span color=\"#EBDBB2\"></span>",
      "7": "<span color=\"#EBDBB2\"></span>",
      "8": "<span color=\"#EBDBB2\"></span>",
      "9": "<span color=\"#EBDBB2\"></span>",
      "urgent": "",
      "focused": "",
      "default": ""
    }
    },
  "clock#time": {
    "interval": 1,
    "format": "    {:%H:%M:%S} ",
    "tooltip": false
  },

  "clock#date": {
    "interval": 10,
    "format": "    {:%e %b %y} ", // icon: calendar-alt
    "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
  },

  "custom/sound": {
     "format": "  {}",
//  "exec": "amixer get Master | sed -nre 's/.*\\[off\\].*/      \n\nmuted/p; s/.*\\[(.*%)\\].*/    \\1/p'",
    "exec": "amixer get Master | awk -F'[][]' 'END{ print $2 }'",
    "on-click": "amixer set Master toggle; pkill -x -RTMIN+11 waybar",
    "on-scroll-up": "amixer set Master 1+; pkill -x -RTMIN+11 waybar",
    "on-scroll-down": "amixer set Master 1-; pkill -x -RTMIN+11 waybar",
    "signal": 11,
    "interval": 1,
    "tooltip": true
    },
"custom/mpris": {
    "return-type": "json",
    "exec": "waybar-mpris --position --autofocus",
    "on-click": "waybar-mpris --send toggle",
    // This option will switch between players on right click.
        "on-click-right": "waybar-mpris --send player-next",
    // The options below will switch the selected player on scroll
        // "on-scroll-up": "waybar-mpris --send player-next",
        // "on-scroll-down": "waybar-mpris --send player-prev",
    // The options below will go to next/previous track on scroll
        "on-scroll-up": "waybar-mpris --send next",
        "on-scroll-down": "waybar-mpris --send prev",
    "escape": true
}
}
